#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
        /*int a = 0;
        int b = 0;
        scanf("%d %d", &a,&b);
        printf("%d %d", a / b, a % b);
        return 0;*/

   /* int a = 0;
    int b = 0;
    scanf("%d %d", &a, &b);
    if (a > b)
        printf("%d>%d", a, b);
    else if (a == b)
        printf("%d=%d", a, b);
    else if (a < b)
        printf("%d<%d", a, b);
    return 0;*/

    /*int a = 1;
    while(a%3==0)
        printf("%d\n",a)*/

    /*int a = 0;
    scanf("%d", &a);
    while (a)
    {
        printf("%d ", a % 10);
        a = a / 10;
    }*/

    /*int a = 0;
    for (a = 1; a <= 100; a++)
        if (a % 3 == 0)
            printf("%d\n", a);*/

   /* int a = 0;

    while (scanf("%d", &a) != EOF) {
        int i = 0;
        while (i < a) {
            prinf("*");
            i++;
        }
        printf("\n");
    }*/

    
    {
        int a = 0;
        int b = 0;
        while (scanf("%d", &a) != EOF)
        {
            if (a > b)
                b = a;
            else
                b = b;

        }
        printf("%d", b);
        return 0;
    }

   



	return 0;
    
}
